package server.entity;

import server.util.MyUtils;

import java.util.Date;

//拍卖会
public class Auction {
    private Integer auctionId;
    private Integer goodId;
    private Date start;//开始的时间
    private Date end;//结束的时间
    private Double maxPrice;//现场最高价格
    private Integer userId;//拍卖最高价格的用户

    public Integer getAuctionId() {
        return auctionId;
    }

    public void setAuctionId(Integer auctionId) {
        this.auctionId = auctionId;
    }

    public Integer getGoodId() {
        return goodId;
    }

    public void setGoodId(Integer goodId) {
        this.goodId = goodId;
    }

    public Date getStart() {
        return start;
    }

    public void setStart(Date start) {
        this.start = start;
    }

    public Date getEnd() {
        return end;
    }

    public void setEnd(Date end) {
        this.end = end;
    }

    public Double getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(Double maxPrice) {
        this.maxPrice = maxPrice;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String toString(){
        return MyUtils.toJson(this,2);
    }
}
